package com.ling.travels.dao;

import com.ling.travels.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author 编程之外
 * @company lingStudy
 * @create 2020-06-28 19:44
 */
@Mapper
@Repository
public interface UserDao {

    // 根据用户名查询用户信息，返回一个user，接收一个参数username
    public User findByUsername(String username);

    //用户注册，插入
    public void saveUser(User user);
}
